64 WDT_A_hold(WDT_A_BASE);
84 RTC_A_initCounter(RTC_A_BASE,
85 RTC_A_CLOCKSELECT_RT1PS,
86 RTC_A_COUNTERSIZE_8BIT);
95 RTC_A_initCounterPrescale(RTC_A_BASE,
97 RTC_A_PSCLOCKSELECT_ACLK,
106 RTC_A_initCounterPrescale(RTC_A_BASE,
108 RTC_A_PSCLOCKSELECT_RT0PS,
112 RTC_A_clearInterrupt(RTC_A_BASE,
114 RTC_A_enableInterrupt(RTC_A_BASE,
118 RTC_A_startClock(RTC_A_BASE);
120 __bis_SR_register(LPM3_bits + GIE);
123 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
124 #pragma vector=RTC_VECTOR
126 #elif defined(__GNUC__)
127 __attribute__((interrupt(RTC_VECTOR)))
131 switch (__even_in_range(RTCIV,16)){
136 GPIO_toggleOutputOnPin(
GPIO_setOutputHighOnPin(GPIO_PORT_LED1|GPIO_PORT_LED2, GPIO_PIN_LED1|GPIO_PIN_LED2)